<?php
namespace app\index\controller;
// namespace app\zw_admin\controller;
use \think\Controller;
use think\Db;
// use think\Controller;
use think\Session;
use think\Request;


class FerrController extends Controller
{
    public function index()
    {
		
		return $this->fetch('index');
    }



    public function add()
    {
    	// dump(input('post.'));
    	$list = input('post.');
    	$list['time'] = date('Y-m-d');

    	if (Db::name('bank')->insert($list) > 0) {
    		echo '1';
    	}else{
    		echo '2';
    	}
    }
}
